package com.ad.pet.app.main.adapter;

import android.support.annotation.Nullable;
import android.widget.ImageView;
import android.widget.TextView;

import com.ad.pet.R;
import com.ad.pet.common.data.utils.glide.GlideUtil;
import com.ad.pet.models.remote.home.floor.Floor;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * Created by SEELE on 2019/8/30.
 */

public class MainFloorAdapter extends BaseQuickAdapter<Floor,BaseViewHolder> {
    public MainFloorAdapter( @Nullable List<Floor> data) {
        super(R.layout.item_main_recommed_type_layout, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, final Floor item) {
        TextView tvType = helper.getView(R.id.tv_text);
        ImageView ivHead = helper.getView(R.id.iv_type);

        tvType.setText(item.getType());
        GlideUtil.load(mContext,item.getAdv_image(),ivHead);









    }


}
